<!--[if lt IE 9]>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
  <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
  </script>
<!--<![endif]-->
<script>
  window.jQuery || document.write(
    '<script src="/third_party/static/jquery-2.1.1/jquery.min.js">\x3C/script>');
</script>

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script>
  window.jQuery.ui || document.write(
    '<script src="/third_party/static/jqueryui-1.10.3/jquery-ui.min.js">\x3C/script>');
</script>

<script src="/third_party/static/bootstrap-3.1.1/js/bootstrap.min.js"></script>

{% if DEV_MODE %}
  <script src="/third_party/static/angularjs-1.3.13/angular.js"></script>
  <script src="/third_party/static/ui-bootstrap-0.12.0/ui-bootstrap-tpls-0.12.0.js"></script>
  <script src="/third_party/static/angularjs-1.3.13/angular-aria.js"></script>
{% else %}
  <script src="/third_party/static/angularjs-1.3.13/angular.min.js"></script>
  <script src="/third_party/static/ui-bootstrap-0.12.0/ui-bootstrap-tpls-0.12.0.min.js"></script>
  <script src="/third_party/static/angularjs-1.3.13/angular-aria.min.js"></script>
{% endif %}

<script src="/third_party/static/ng-joyride-0.1.11/ng-joyride.js"></script>
<script src="/third_party/static/select2-3.5.1/select2.js"></script>

<!-- See http://docs.mathjax.org/en/latest/start.html#mathjax-cdn -->
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    skipStartupTypeset: true,
    messageStyle: 'none',
    'HTML-CSS': {
      showMathMenu: false
    }
  });
  MathJax.Hub.Configured();
</script>
<script src="/third_party/static/MathJax-2.4-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

<script src="/third_party/static/ui-sortable-0.12.6/src/sortable.js"></script>

<script src="/third_party/static/hammer-js-2.0.4/hammer.js"></script>
<script src="/third_party/static/bower-material-0.6.0-rc1/angular-material.js"></script>

<script src="/third_party/static/ng-img-crop-0.3.2/compile/minified/ng-img-crop.js"></script>

<!-- This is used in Google Maps and for form validation. -->
<script src="/third_party/static/ui-utils-0.1.1/ui-utils.js"></script>